core

object core

Wrappers for @actions/core. Most are deprecated in favor of the specialized extensions.

Functions

addPath
Link copied to clipboard
fun addPath(inputPath: String)
debug
Link copied to clipboard
fun debug(message: String)
endGroup
Link copied to clipboard
fun endGroup()
error
Link copied to clipboard
fun error(message: String)
fun error(exception: Throwable)
fun error(message: String, annotationProperties: AnnotationProperties)
fun error(exception: Throwable, annotationProperties: AnnotationProperties)
exportVariable
Link copied to clipboard
fun exportVariable(name: String, value: String)
exportVariableStringify
Link copied to clipboard
fun exportVariableStringify(name: String, value: Any)
getOptionalInput
Link copied to clipboard
fun getOptionalInput(name: String, trimWhitespace: Boolean = true): String?
getRequiredInput
Link copied to clipboard
fun getRequiredInput(name: String, trimWhitespace: Boolean = true): String
Gets the input, or throws IllegalStateException.
getRequiredState
Link copied to clipboard
fun getRequiredState(name: String): String
getState
Link copied to clipboard
fun getState(name: String): String?
info
Link copied to clipboard
fun info(message: String)
issueCommand
Link copied to clipboard
fun issueCommand(command: String, value: String, vararg properties: Pair<String, String>)
Issue a GitHub Action command.
fun issueCommand(command: String, value: String, properties: Map<String, String> = emptyMap())
Issue a GitHub Action command.
issueFileCommand
Link copied to clipboard
fun issueFileCommand(command: String, message: String)
Issue a GitHub Action file command.
notice
Link copied to clipboard
fun notice(message: String)
fun notice(exception: Throwable)
fun notice(message: String, annotationProperties: AnnotationProperties)
fun notice(exception: Throwable, annotationProperties: AnnotationProperties)
saveState
Link copied to clipboard
fun saveState(name: String, value: String)
saveStateStringify
Link copied to clipboard
fun saveStateStringify(name: String, value: Any)
setCommandEcho
Link copied to clipboard
fun setCommandEcho(enabled: Boolean)
setFailed
Link copied to clipboard
fun setFailed(message: String)
fun setFailed(exception: Throwable)
setOutput
Link copied to clipboard
fun setOutput(name: String, value: String)
setOutputStringify
Link copied to clipboard
fun setOutputStringify(name: String, value: Any)
setSecret
Link copied to clipboard
fun setSecret(secret: String)
startGroup
Link copied to clipboard
fun startGroup(name: String)
warning
Link copied to clipboard
fun warning(message: String)
fun warning(exception: Throwable)
fun warning(message: String, annotationProperties: AnnotationProperties)
fun warning(exception: Throwable, annotationProperties: AnnotationProperties)
withGroup
Link copied to clipboard
inline fun <R> withGroup(name: String, block: () -> R): R

Properties

echoCommands
Link copied to clipboard
var echoCommands: Boolean?
isDebug
Link copied to clipboard
val isDebug: Boolean

Sources

js source
Link copied to clipboard